//角色接口
import request from "@/utils/request";

//角色列表
export const roleList = () => {
  return request.get("/manage/role/query_all");
};

//添加角色
export const addRole = params => {
  return request.post("/manage/role/add", params);
};

//删除角色
export const delRole = id => {
  return request.get("/manage/role/delete?id=" + id);
};

//编辑角色
export const editRole = params => {
  return request.post("/manage/role/edit", params);
};

//授权
export const authorRole = params => {
  return request.post("/manage/role/authorize_role_menu", params);
};
